#include "is_eq.h"
#include <cmath>
//#include <float.h>
#define max(a, b) (((a) > (b)) ? (a) : (b))

bool IsEq (double a, double b, double delta) {
    return std::abs(a - b) < delta;
    //return std::abs(a - b) < delta*max(std::abs(a),std::abs(b));
    //return std::abs(a - b) < DBL_EPSILON*1000*max(std::abs(a),std::abs(b));
    //return std::abs(a - b) <= delta*std::abs(a);
}
